<%= form_for record,
  :url => update_record_customer_url(record),
  :method => :put,
  :remote => true do |f|%>
    <div>
      <%= f.text_area :content, :class => 'grid_10' %>
    </div>
    <div>
      <%= link_to_function "保存该记录", "$('#edit_contact_record_#{record.id}').submit()", :class => :button %> 或
      <%= link_to_function '离开',"$('.edit_form').hide();$('#note_#{record.id} .content').show();$('#note_#{record.id} .tools').show();" %>
    </div>
<% end %>